import App from './App'
import uviewPlus from '@/uni_modules/uview-plus'
import request from '@/common/js/request.js';
import { baseURL, imagePrefix } from '@/common/js/data.js';
import  { login, getQueryStr, checkLogin,uniPay } from '@/common/js/method.js';
uni.$login = checkLogin;
uni.$checkLogin = checkLogin;
uni.$request = request;
uni.$baseURL = baseURL;
uni.$imagePrefix = imagePrefix;
uni.$getQueryStr = getQueryStr;
uni.$pay = uniPay;
uni.$u.setConfig({
	// 修改$u.props对象的属性
	props: {
		// 修改line组件颜色color参数的默认值，相当于执行 uni.$u.props.line.color = 'rgba(225,225,225,1)'
		line: {
			color: 'rgba(225,225,225,1)',
		}
	},

});
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	app.use(uviewPlus)

	return {
		app
	}
}
// #endif